package cn.ilovese.collect.controller.coordination;

import cn.ilovese.collect.service.coordination.CoordinationService;
import cn.ilovese.collect.vo.Coordination.CoordinationAbilityVO;
import cn.ilovese.collect.vo.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/coordination")
public class CoordinationController {

    @Resource
    CoordinationService coordinationService;

    @GetMapping("/getCoorAbility/{userId}")
    ResultVO<CoordinationAbilityVO> getCoordinationAbility(@PathVariable Integer userId)
    {
        System.out.println(userId);
        return coordinationService.getCoordinationAbility(userId);
    }
}
